﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnHospitalfeeHistory.aspx.cs" Inherits="Page_Customer_OnHospitalfeeHistory" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>门诊缴费历史</title>
    <link href="../../Content/syzyy/css/mzjf/styles.1881067e4c6ce9cef087.css" rel="stylesheet" />
    <link rel="stylesheet" href="../../Content/syzyy/css/mzjf/styles.1881067e4c6ce9cef087.css" />
    <link href="../../Content/syzyy/css/mzjf/zdy.css" rel="stylesheet" />
    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <%--layui--%>
    <link href="../../layui/css/layui.css" rel="stylesheet" />
    <script src="../../layui/layui.js"></script>
</head>
<body>
    <div _ngcontent-c0="" class="app-outer theme-tcm" id="app-outer" style="height: 100%;">
        <div _ngcontent-c2="" class="outpatient-payment-list common-page bg-light-grey">
            <div _ngcontent-c2="" class="list-title bg-white">
                <span _ngcontent-c2="" class="pull-left fc-light-grey fs-30">就诊人</span>
                <span _ngcontent-c2="" class="pull-right fs-30"><%--<%=Model.PatientName %> --%></span>
            </div>
            <div _ngcontent-c2="" class="list-content">
                <div _ngcontent-c2="" class="list-content-item">
                    <div _ngcontent-c2="" class="cardItem">
                        <div _ngcontent-c3="" class="outpatientPayRecordsList check-box-blue-f">
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script>

        layui.use('layer', function () {
            //var layer = layui.layer;
            $(function () {
                //layer.alert('只想简单的提示');
                $.post("/Handler/SyzyyHandler.ashx?Action=GetOrdInfotollHistory&OpenId=<%=OpenID%>", function (data) {
                    var list = eval("(" + data + ")");
                    if (typeof (list) != "undefined") {
                        var html = "";
                        if (list.length<=0)
                        {
                            layer.alert("未查询到门诊微信缴费历史");
                            return;
                        }
                        for (var i = 0; i < list.length; i++) {
                            var temp = '<div _ngcontent-c3="" class="RecordsItem">' +
                                    '<div _ngcontent-c3="" class="RecordsItem-content">' +
                                        '<div _ngcontent-c3="" class="pull-left">' +
                                            '<span _ngcontent-c3="" class="fee_type">{OrgName}</span>' +
                                            '<p _ngcontent-c3="" class="time">{visiterTime}</p>' +
                                        '</div>' +
                                        '<a href="OnHospitalFeeItemHistory.aspx{Url}">' +
                                            '<div _ngcontent-c3="" class="pull-right detail-right">' +
                                                '<span _ngcontent-c3="" class="red">￥{OrdMoney} </span>' +
                                                '<img _ngcontent-c3="" alt="" class="pull-right" src="../../Content/syzyy/img/icon_arrow-grey@2x.png">' +
                                            '</div>' +
                                        '</a>' +
                                    '</div>' +
                                 '</div>';
                            html += temp.replace(/{OrgName}/, list[i].HISOrgName).replace(/{visiterTime}/, list[i].HISOrdTime)
                                        .replace(/{OrdMoney}/, list[i].HISTotalMoney).replace(/{Url}/, "?OrgName=" + list[i].HISOrgName + "&OrdMoney=" + list[i].HISTotalMoney + "&PreOrderNo=" + list[i].PreOrderNo);
                        }
                        $(".outpatientPayRecordsList").html(html);

                    }
                });
            })
        });
    </script>
</body>
</html>
